package com.flyllp.service.impl;

import com.flyllp.persistence.dao.TblUserMapper;
import com.flyllp.persistence.model.TblUser;
import com.flyllp.persistence.model.TblUserExample;
import com.flyllp.service.UserService;

public class UserServiceImpl implements UserService
{

	private TblUserMapper userDao;

	@Override
	public boolean login()
	{
		TblUser user = new TblUser();
		user.setPassword("flyllp");
		user.setUsername("flyllp");
		userDao.insert(user);

		TblUserExample userExp = new TblUserExample();
		userExp.createCriteria().andUsernameEqualTo("flyllp");
		// userDao.deleteByExample(userExp);

		return false;
	}

	public void setUserDao(TblUserMapper userDao)
	{
		this.userDao = userDao;
	}

}
